package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import io.renren.dao.SubVesselDao;
import io.renren.entity.SubVesselEntity;
import io.renren.service.SubVesselService;



@Service("subVesselService")
public class SubVesselServiceImpl implements SubVesselService {
	@Autowired
	private SubVesselDao subVesselDao;
	
	@Override
	public SubVesselEntity queryObject(Date createTime){
		return subVesselDao.queryObject(createTime);
	}
	
	@Override
	public List<SubVesselEntity> queryList(Map<String, Object> map){
		return subVesselDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return subVesselDao.queryTotal(map);
	}
	
	@Override
	public void save(SubVesselEntity subVessel){
		subVesselDao.save(subVessel);
	}
	
	@Override
	public void update(SubVesselEntity subVessel){
		subVesselDao.update(subVessel);
	}
	
	@Override
	public void delete(Date createTime){
		subVesselDao.delete(createTime);
	}
	
	@Override
	public void deleteBatch(Date[] createTimes){
		subVesselDao.deleteBatch(createTimes);
	}
	
}
